package com.liuyanzhao.blog.entity;

import java.util.Date;
/**
 * 
 * @author Lu Han
 *  公告的get/set 
 * @CrateTime: 2019年6月22日
 */
public class Notice {
    private Integer noticeId;

    private String noticeTitle;

    private String noticeContent;

    private Date noticeCreateTime;

    private Date noticeUpdateTime;

    private Integer noticeStatus;

    private Integer noticeOrder;

    public Integer getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(Integer noticeId) {
        this.noticeId = noticeId;
    }

    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle == null ? null : noticeTitle.trim();
    }

    public String getNoticeContent() {
        return noticeContent;
    }

    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent == null ? null : noticeContent.trim();
    }

    public Date getNoticeCreateTime() {
        return noticeCreateTime;
    }

    public void setNoticeCreateTime(Date noticeCreateTime) {
        this.noticeCreateTime = noticeCreateTime;
    }

    public Date getNoticeUpdateTime() {
        return noticeUpdateTime;
    }

    public void setNoticeUpdateTime(Date noticeUpdateTime) {
        this.noticeUpdateTime = noticeUpdateTime;
    }

    public Integer getNoticeStatus() {
        return noticeStatus;
    }

    public void setNoticeStatus(Integer noticeStatus) {
        this.noticeStatus = noticeStatus;
    }

    public Integer getNoticeOrder() {
        return noticeOrder;
    }

    public void setNoticeOrder(Integer noticeOrder) {
        this.noticeOrder = noticeOrder;
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((noticeContent == null) ? 0 : noticeContent.hashCode());
		result = prime * result + ((noticeCreateTime == null) ? 0 : noticeCreateTime.hashCode());
		result = prime * result + ((noticeId == null) ? 0 : noticeId.hashCode());
		result = prime * result + ((noticeOrder == null) ? 0 : noticeOrder.hashCode());
		result = prime * result + ((noticeStatus == null) ? 0 : noticeStatus.hashCode());
		result = prime * result + ((noticeTitle == null) ? 0 : noticeTitle.hashCode());
		result = prime * result + ((noticeUpdateTime == null) ? 0 : noticeUpdateTime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Notice other = (Notice) obj;
		if (noticeContent == null) {
			if (other.noticeContent != null)
				return false;
		} else if (!noticeContent.equals(other.noticeContent))
			return false;
		if (noticeCreateTime == null) {
			if (other.noticeCreateTime != null)
				return false;
		} else if (!noticeCreateTime.equals(other.noticeCreateTime))
			return false;
		if (noticeId == null) {
			if (other.noticeId != null)
				return false;
		} else if (!noticeId.equals(other.noticeId))
			return false;
		if (noticeOrder == null) {
			if (other.noticeOrder != null)
				return false;
		} else if (!noticeOrder.equals(other.noticeOrder))
			return false;
		if (noticeStatus == null) {
			if (other.noticeStatus != null)
				return false;
		} else if (!noticeStatus.equals(other.noticeStatus))
			return false;
		if (noticeTitle == null) {
			if (other.noticeTitle != null)
				return false;
		} else if (!noticeTitle.equals(other.noticeTitle))
			return false;
		if (noticeUpdateTime == null) {
			if (other.noticeUpdateTime != null)
				return false;
		} else if (!noticeUpdateTime.equals(other.noticeUpdateTime))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Notice [noticeId=" + noticeId + ", noticeTitle=" + noticeTitle + ", noticeContent=" + noticeContent
				+ ", noticeCreateTime=" + noticeCreateTime + ", noticeUpdateTime=" + noticeUpdateTime
				+ ", noticeStatus=" + noticeStatus + ", noticeOrder=" + noticeOrder + "]";
	}
    
    
    
}